Skip to content

Commit

Permalink
Fix Xcode 10.2 warnings (#130)
Browse files Browse the repository at this point in the history
* Remove redundant 'public' modifiers

'public' modifier is redundant for instance method declared in a public extension

* Xcode 10.2 recommended settings

* Clear the Swift migration check
  • Loading branch information
mdiep authored and rob phillips committed Apr 2, 2019
1 parent 8b1f549 commit 1fecb4b
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 12 deletions.
11 changes: 7 additions & 4 deletions Down.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -448,27 +448,28 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0820;
LastUpgradeCheck = 1010;
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = "Glazed Donut, LLC.";
TargetAttributes = {
8A569F3F1E6B3E50008BE2AC = {
CreatedOnToolsVersion = 8.2.1;
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
ProvisioningStyle = Automatic;
};
8AFAEAFA1E6E32E900E09B68 = {
CreatedOnToolsVersion = 8.2.1;
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = D4201E7A1CFA5151008EEC6E /* Build configuration list for PBXProject "Down" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = D4201E761CFA5151008EEC6E;
productRefGroup = D4201E811CFA5151008EEC6E /* Products */;
Expand Down Expand Up @@ -657,6 +658,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand Down Expand Up @@ -721,6 +723,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand Down
2 changes: 1 addition & 1 deletion Down.xcodeproj/xcshareddata/xcschemes/Down.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Source/Renderers/DownASTRenderable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public protocol DownASTRenderable: DownRenderable {
func toAST(_ options: DownOptions) throws -> UnsafeMutablePointer<cmark_node>
}

public extension DownASTRenderable {
extension DownASTRenderable {
/**
Generates an abstract syntax tree from the `markdownString` property

Expand Down
2 changes: 1 addition & 1 deletion Source/Renderers/DownAttributedStringRenderable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public protocol DownAttributedStringRenderable: DownHTMLRenderable {
func toAttributedString(_ options: DownOptions, stylesheet: String?) throws -> NSAttributedString
}

public extension DownAttributedStringRenderable {
extension DownAttributedStringRenderable {
/**
Generates an `NSAttributedString` from the `markdownString` property

Expand Down
2 changes: 1 addition & 1 deletion Source/Renderers/DownCommonMarkRenderable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public protocol DownCommonMarkRenderable: DownRenderable {
func toCommonMark(_ options: DownOptions, width: Int32) throws -> String
}

public extension DownCommonMarkRenderable {
extension DownCommonMarkRenderable {
/**
Generates a CommonMark Markdown string from the `markdownString` property

Expand Down
2 changes: 1 addition & 1 deletion Source/Renderers/DownGroffRenderable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public protocol DownGroffRenderable: DownRenderable {
func toGroff(_ options: DownOptions, width: Int32) throws -> String
}

public extension DownGroffRenderable {
extension DownGroffRenderable {
/**
Generates a groff man string from the `markdownString` property

Expand Down
2 changes: 1 addition & 1 deletion Source/Renderers/DownHTMLRenderable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public protocol DownHTMLRenderable: DownRenderable {
func toHTML(_ options: DownOptions) throws -> String
}

public extension DownHTMLRenderable {
extension DownHTMLRenderable {
/**
Generates an HTML string from the `markdownString` property

Expand Down
2 changes: 1 addition & 1 deletion Source/Renderers/DownLaTeXRenderable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public protocol DownLaTeXRenderable: DownRenderable {
func toLaTeX(_ options: DownOptions, width: Int32) throws -> String
}

public extension DownLaTeXRenderable {
extension DownLaTeXRenderable {
/**
Generates a LaTeX string from the `markdownString` property

Expand Down
2 changes: 1 addition & 1 deletion Source/Renderers/DownXMLRenderable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public protocol DownXMLRenderable: DownRenderable {
func toXML(_ options: DownOptions) throws -> String
}

public extension DownXMLRenderable {
extension DownXMLRenderable {
/**
Generates an XML string from the `markdownString` property

Expand Down

0 comments on commit 1fecb4b

Please sign in to comment.