mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-09 06:23:41 +02: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", {
|
var Buffer = Module("Buffer", {
|
||||||
Local: function Local(dactyl, modules, window) {
|
Local: function Local(dactyl, modules, window) {
|
||||||
return {
|
return {
|
||||||
get win() {
|
get win() { return window.content; }
|
||||||
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;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user