1
0
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:
Doug Kearns
2015-10-20 21:49:59 +11:00
parent 41d023ac4f
commit fb13552421

View File

@@ -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; }
};
},