mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 02:54:13 +01:00
Remove unreachable code from buffer.win.
Presumably this was intended as an alternate implementation but appears never to have been used.
This commit is contained in:
@@ -31,16 +31,7 @@ lazyRequire("template", ["template"]);
|
||||
var Buffer = Module("Buffer", {
|
||||
Local: function Local(dactyl, modules, window) {
|
||||
return {
|
||||
get win() {
|
||||
return window.content;
|
||||
|
||||
let win = services.focus.focusedWindow;
|
||||
if (!win || win == window || util.topWindow(win) != window)
|
||||
return window.content;
|
||||
if (win.top == window)
|
||||
return win;
|
||||
return win.top;
|
||||
}
|
||||
get win() { return window.content; }
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user