1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-30 08:17:18 +00:00

Remove unused context.Domain

it was added (and wrong idx) on previous commit for some of my internal
tests, this is not used anywhere so remove it.
This commit is contained in:
Makis Maropoulos
2016-06-30 06:02:07 +03:00
parent 66a66fdfa0
commit 49c1a595ec
3 changed files with 1 additions and 11 deletions

View File

@@ -297,15 +297,6 @@ func (ctx *Context) PostFormMulti(name string) []string {
return arrStr
}
// Domain same as VirtualHostname but without the :port part (if any)
func (ctx *Context) Domain() string {
domain := ctx.VirtualHostname()
if idx := strings.IndexByte(domain, ':'); idx > 0 {
domain = domain[0 : idx-1]
}
return domain
}
// Subdomain returns the subdomain (string) of this request, if any
func (ctx *Context) Subdomain() (subdomain string) {
host := ctx.HostString()