Skip to content

Commit

Permalink
Merge pull request #2629 from jjatie/NSObjectProtocol
Browse files Browse the repository at this point in the history
Replaced unnecessary NSObjectProtocol
  • Loading branch information
pmairoldi committed Oct 20, 2017
2 parents 0a63b74 + 26965e1 commit 2f887bd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/Charts/Components/IMarker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Foundation
import CoreGraphics

@objc(IChartMarker)
public protocol IMarker: NSObjectProtocol
public protocol IMarker: class
{
/// - returns: The desired (general) offset you wish the IMarker to have on the x-axis.
///
Expand Down
2 changes: 1 addition & 1 deletion Source/Charts/Formatters/IAxisValueFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Foundation

/// An interface for providing custom axis Strings.
@objc(IChartAxisValueFormatter)
public protocol IAxisValueFormatter : NSObjectProtocol
public protocol IAxisValueFormatter: class
{

/// Called when a value from an axis is formatted before being drawn.
Expand Down
2 changes: 1 addition & 1 deletion Source/Charts/Formatters/IValueFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Foundation
///
/// Then override the getFormattedValue(...) method and return whatever you want.
@objc(IChartValueFormatter)
public protocol IValueFormatter : NSObjectProtocol
public protocol IValueFormatter: class
{

/// Called when a value (from labels inside the chart) is formatted before being drawn.
Expand Down
2 changes: 1 addition & 1 deletion Source/Charts/Highlight/IHighlighter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Foundation
import CoreGraphics

@objc(IChartHighlighter)
public protocol IHighlighter : NSObjectProtocol
public protocol IHighlighter: class
{
/// - returns: A Highlight object corresponding to the given x- and y- touch positions in pixels.
/// - parameter x:
Expand Down
2 changes: 1 addition & 1 deletion Source/Charts/Renderers/Scatter/IShapeRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Foundation
import CoreGraphics

@objc
public protocol IShapeRenderer : NSObjectProtocol
public protocol IShapeRenderer: class
{
/// Renders the provided ScatterDataSet with a shape.
///
Expand Down

0 comments on commit 2f887bd

Please sign in to comment.