-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move deprecated Realm-related code to Realm podspec
- Loading branch information
1 parent
981f0c6
commit a6993af
Showing
4 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.2 | ||
3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// Deprecated-Realm.swift | ||
// DTModelStorage | ||
// | ||
// Created by Denys Telezhkin on 29.01.17. | ||
// Copyright © 2017 Denys Telezhkin. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import RealmSwift | ||
|
||
extension RealmStorage { | ||
@available(*, unavailable, renamed: "section(at:)") | ||
open func sectionAtIndex(_ sectionIndex: Int) -> Section? { | ||
fatalError("UNAVAILABLE") | ||
} | ||
|
||
@available(*, unavailable, renamed: "addSection(with:)") | ||
open func addSectionWithResults<T:Object>(_ results: Results<T>) { | ||
fatalError("UNAVAILABLE") | ||
} | ||
|
||
@available(*,unavailable,renamed:"setSection(with:forSection:)") | ||
open func setSectionWithResults<T:Object>(_ results: Results<T>, forSectionIndex index: Int) { | ||
fatalError("UNAVAILABLE") | ||
} | ||
} |