Browse Source

Remove comments.

Naotoshi Fujita 2 năm trước cách đây
mục cha
commit
6abbc114ca
1 tập tin đã thay đổi với 0 bổ sung17 xóa
  1. 0 17
      src/js/components/Layout/Layout.ts

+ 0 - 17
src/js/components/Layout/Layout.ts

@@ -219,23 +219,6 @@ export function Layout(
    * @return The total width of slides in the horizontal slider, or the height in the vertical one.
    */
   function totalSize( index: number, withoutGap?: boolean ): number {
-    // const first = getAt( index );
-    // const last  = getAt( Splide.length - 1 );
-    //
-    // if ( last ) {
-    //   console.log( last.pos() );
-    // }
-    //
-    // const Slide = getAt( index );
-    // if ( Slide ) {
-    //   const right = rect( Slide.slide )[ resolve( 'right' ) ];
-    //   const left  = rect( list )[ resolve( 'left' ) ];
-    //
-    //   return  abs( right - left ) + ( withoutGap ? 0 : getGap() );
-    // }
-    //
-    // return 0;
-
     const Slide = getAt( index );
     return Slide ? Slide.pos() + Slide.size() + ( withoutGap ? 0 : getGap() ) : 0;
   }