Skip to content

Commit 08f619b

Browse files
committed
Lose unused app.clipboardmanager
1 parent b812dcc commit 08f619b

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

src/Application.vala

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public class Files.Application : Gtk.Application {
3232

3333
private VolumeMonitor volume_monitor;
3434
private Progress.UIHandler progress_handler;
35-
private ClipboardManager clipboard;
3635
private Gtk.RecentManager recent;
3736

3837
private const int MARLIN_ACCEL_MAP_SAVE_DELAY = 15;
@@ -136,7 +135,6 @@ public class Files.Application : Gtk.Application {
136135

137136
progress_handler = new Progress.UIHandler ();
138137

139-
this.clipboard = ClipboardManager.get_for_display ();
140138
this.recent = new Gtk.RecentManager ();
141139

142140
/* Global static variable "plugins" declared in PluginManager.vala */
@@ -174,10 +172,6 @@ public class Files.Application : Gtk.Application {
174172
set_accels_for_action ("app.quit", { "<Ctrl>Q" });
175173
}
176174

177-
public unowned ClipboardManager get_clipboard_manager () {
178-
return this.clipboard;
179-
}
180-
181175
public unowned Gtk.RecentManager get_recent_manager () {
182176
return this.recent;
183177
}
@@ -246,8 +240,6 @@ public class Files.Application : Gtk.Application {
246240
base.quit ();
247241
}
248242

249-
250-
251243
private void mount_removed_callback (VolumeMonitor monitor, Mount mount) {
252244
/* Notify each window */
253245
foreach (var window in this.get_windows ()) {

src/View/AbstractDirectoryView.vala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ namespace Files {
169169
construct {
170170
set_up_additional_menu_actions ();
171171
var app = (Files.Application)(GLib.Application.get_default ());
172-
clipboard = app.get_clipboard_manager ();
173172
recent = app.get_recent_manager ();
174173
app.set_accels_for_action ("common.select-all", {"<Ctrl>A"});
175174
app.set_accels_for_action ("selection.invert-selection", {"<Shift><Ctrl>A"});

0 commit comments

Comments
 (0)