Skip to content

Commit

Permalink
remove some needless stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa1977 committed Feb 20, 2016
1 parent 036273a commit 964f52e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 113 deletions.
34 changes: 0 additions & 34 deletions examples/simple_server/lib/simple_server/endpoint.ex
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
defmodule SimpleServer.Endpoint do
use Phoenix.Endpoint, otp_app: :simple_server

socket "/socket", SimpleServer.UserSocket

# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
at: "/", from: :simple_server, gzip: false,
only: ~w(css fonts images js favicon.ico robots.txt)

# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.
if code_reloading? do
plug Phoenix.CodeReloader
end

plug Plug.RequestId
plug Plug.Logger

plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
json_decoder: Poison

plug Plug.MethodOverride
plug Plug.Head

plug Plug.Session,
store: :cookie,
key: "_simple_server_key",
signing_salt: "rg7udXF+"

plug SimpleServer.Router
end
2 changes: 0 additions & 2 deletions examples/simple_server/test/support/conn_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ defmodule SimpleServer.ConnCase do
# Import conveniences for testing with connections
use Phoenix.ConnTest

import SimpleServer.Router.Helpers

# The default endpoint for testing
@endpoint SimpleServer.Endpoint
end
Expand Down
37 changes: 0 additions & 37 deletions examples/simple_server/web/channels/user_socket.ex

This file was deleted.

11 changes: 0 additions & 11 deletions examples/simple_server/web/router.ex

This file was deleted.

29 changes: 0 additions & 29 deletions examples/simple_server/web/web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,18 @@ defmodule SimpleServer.Web do
below.
"""

def model do
quote do
# Define common model functionality
end
end

def controller do
quote do
use Phoenix.Controller

import SimpleServer.Router.Helpers
import SimpleServer.Gettext
end
end

def view do
quote do
use Phoenix.View, root: "web/templates"

# Import convenience functions from controllers
import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, view_module: 1]

import SimpleServer.Router.Helpers
import SimpleServer.ErrorHelpers
import SimpleServer.Gettext
end
end

def router do
quote do
use Phoenix.Router
end
end

def channel do
quote do
use Phoenix.Channel
import SimpleServer.Gettext
end
end

@doc """
When used, dispatch to the appropriate controller/view/etc.
"""
Expand Down

0 comments on commit 964f52e

Please sign in to comment.