Skip to content

Commit

Permalink
Removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Apr 15, 2014
1 parent da37d7a commit e61f205
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions lib/lotus/model/adapters/memory/collection.rb
Expand Up @@ -40,14 +40,6 @@ def all
records.values
end

def find(id)
records[id] unless id.nil?
end

def first
all.first
end

def clear
@records = {}
@primary_key = PrimaryKey.new
Expand Down
6 changes: 0 additions & 6 deletions lib/lotus/model/adapters/sql/collection.rb
Expand Up @@ -5,12 +5,6 @@ module Model
module Adapters
module Sql
class Collection < SimpleDelegator
module Interface
def name
first_source_table
end
end

def initialize(dataset, collection)
super(dataset)
@collection = collection
Expand Down
2 changes: 0 additions & 2 deletions lib/lotus/model/adapters/sql_adapter.rb
Expand Up @@ -13,9 +13,7 @@ class SqlAdapter < Abstract

def initialize(mapper, uri)
super

@connection = Sequel.connect(@uri)
@connection.extend_datasets(Sql::Collection::Interface)
end

def create(collection, entity)
Expand Down

0 comments on commit e61f205

Please sign in to comment.