Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Removes duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Romero Zurbuchen committed Apr 21, 2016
1 parent ca00721 commit 6974fc7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Source/SLKTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,8 @@ - (BOOL)canPerformAction:(SEL)action withSender:(id)sender
return self.selectedRange.length > 0 ? YES : NO;
}

if (action == @selector(paste:) && [self slk_isPasteboardItemSupported]) {
return YES;
}

if (action == @selector(paste:) && [self slk_isPasteboardItemSupported]) {
return YES;
if (action == @selector(paste:)) {
return [self slk_isPasteboardItemSupported];
}

if (self.undoManagerEnabled) {
Expand Down

0 comments on commit 6974fc7

Please sign in to comment.