Skip to content

Commit

Permalink
chore(db) remove unused DAO/strategies overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Feb 20, 2018
1 parent 90bde17 commit 1fbfda2
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 36 deletions.
4 changes: 0 additions & 4 deletions kong-0.12.1-0.rockspec
Expand Up @@ -129,8 +129,6 @@ build = {
["kong.db"] = "kong/db/init.lua",
["kong.db.errors"] = "kong/db/errors.lua",
["kong.db.dao"] = "kong/db/dao/init.lua",
["kong.db.dao.routes"] = "kong/db/dao/routes.lua",
["kong.db.dao.services"] = "kong/db/dao/services.lua",
["kong.db.schema"] = "kong/db/schema/init.lua",
["kong.db.schema.entities.routes"] = "kong/db/schema/entities/routes.lua",
["kong.db.schema.entities.services"] = "kong/db/schema/entities/services.lua",
Expand All @@ -145,8 +143,6 @@ build = {
["kong.db.strategies.cassandra.services"] = "kong/db/strategies/cassandra/services.lua",
["kong.db.strategies.postgres"] = "kong/db/strategies/postgres/init.lua",
["kong.db.strategies.postgres.connector"] = "kong/db/strategies/postgres/connector.lua",
["kong.db.strategies.postgres.routes"] = "kong/db/strategies/postgres/routes.lua",
["kong.db.strategies.postgres.services"] = "kong/db/strategies/postgres/services.lua",

["kong.plugins.base_plugin"] = "kong/plugins/base_plugin.lua",

Expand Down
4 changes: 0 additions & 4 deletions kong/db/dao/routes.lua

This file was deleted.

4 changes: 0 additions & 4 deletions kong/db/dao/services.lua

This file was deleted.

2 changes: 0 additions & 2 deletions kong/db/schema/entities/routes.lua
Expand Up @@ -84,6 +84,4 @@ return {
entity_checks = {
{ at_least_one_of = {"methods", "hosts", "paths"} },
},

dao = "kong.db.dao.routes",
}
7 changes: 1 addition & 6 deletions kong/db/strategies/postgres/init.lua
Expand Up @@ -846,12 +846,7 @@ function _mt:each(size)
end


local _M = {
CUSTOM_STRATEGIES = {
services = require "kong.db.strategies.postgres.services",
routes = require "kong.db.strategies.postgres.routes",
}
}
local _M = {}


function _M.new(connector, schema, errors)
Expand Down
8 changes: 0 additions & 8 deletions kong/db/strategies/postgres/routes.lua

This file was deleted.

8 changes: 0 additions & 8 deletions kong/db/strategies/postgres/services.lua

This file was deleted.

0 comments on commit 1fbfda2

Please sign in to comment.