Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 660092e

Browse files
committed
Clean up and remove test since unit testing on mac not set up?
1 parent 97acb46 commit 660092e

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

shell/platform/darwin/macos/framework/Source/FlutterViewController.mm

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ - (NSDictionary*)getClipboardData:(NSString*)format {
537537

538538
- (void)setClipboardData:(NSDictionary*)data {
539539
NSPasteboard* pasteboard = [NSPasteboard generalPasteboard];
540-
NSString *text = data[@"text"];
540+
NSString* text = data[@"text"];
541541
if (text && ![text isEqual:[NSNull null]]) {
542542
[pasteboard clearContents];
543543
[pasteboard setString:text forType:NSPasteboardTypeString];
@@ -549,10 +549,6 @@ - (NSDictionary*)clipboardHasStrings {
549549
NSString* string = data[@"text"];
550550
BOOL hasStrings = string.length > 0;
551551
return @{@"value" : @(hasStrings)};
552-
/*
553-
UIPasteboard* pasteboard = [UIPasteboard generalPasteboard];
554-
return @{@"value" : @(pasteboard.hasStrings)};
555-
*/
556552
}
557553

558554
#pragma mark - FlutterViewReshapeListener

shell/platform/darwin/macos/framework/Source/FlutterViewControllerTest.mm

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)