]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove deprecated functions
authorLukas Reschke <lukas@statuscode.ch>
Thu, 29 May 2014 15:01:30 +0000 (17:01 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Thu, 29 May 2014 15:01:30 +0000 (17:01 +0200)
This functions have been deprecated since Oct 2012 (ownCloud 5), let's finally remove them for ownCloud 7.

Ref https://github.com/owncloud/core/commit/c4b8bb10411a4d601b7f4c8758980005f14850ab

core/js/js.js

index 38b97590430d26fe27154693387a9164738e40f7..fde6018e9f4ea084e30f9b0c09501d56c609dea3 100644 (file)
@@ -934,39 +934,6 @@ function object(o) {
        return new F();
 }
 
-/**
- * Fills height of window. (more precise than height: 100%;)
- * @param selector
- */
-function fillHeight(selector) {
-       if (selector.length === 0) {
-               return;
-       }
-       var height = parseFloat($(window).height())-selector.offset().top;
-       selector.css('height', height + 'px');
-       if(selector.outerHeight() > selector.height()){
-               selector.css('height', height-(selector.outerHeight()-selector.height()) + 'px');
-       }
-       console.warn("This function is deprecated! Use CSS instead");
-}
-
-/**
- * Fills height and width of window. (more precise than height: 100%; or width: 100%;)
- * @param selector
- */
-function fillWindow(selector) {
-       if (selector.length === 0) {
-               return;
-       }
-       fillHeight(selector);
-       var width = parseFloat($(window).width())-selector.offset().left;
-       selector.css('width', width + 'px');
-       if(selector.outerWidth() > selector.width()){
-               selector.css('width', width-(selector.outerWidth()-selector.width()) + 'px');
-       }
-       console.warn("This function is deprecated! Use CSS instead");
-}
-
 /**
  * Initializes core
  */