mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 23:12:25 -05:00 
			
		
		
		
	remove unused functions
This commit is contained in:
		
					parent
					
						
							
								8911c9194f
							
						
					
				
			
			
				commit
				
					
						03fdc27044
					
				
			
		
					 1 changed files with 0 additions and 21 deletions
				
			
		|  | @ -79,27 +79,6 @@ func (p *Page) Order() Order { | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // GetBounds is a small helper function to return low and high page bound ptrs (checking for nil page). |  | ||||||
| func (p *Page) GetBounds() (lo *Boundary, hi *Boundary) { |  | ||||||
| 	if p == nil { |  | ||||||
| 		return nil, nil |  | ||||||
| 	} |  | ||||||
| 	return p.Bounds() |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // Bounds is a smaller helper function to return low and high page bound ptrs. |  | ||||||
| func (p *Page) Bounds() (lo *Boundary, hi *Boundary) { |  | ||||||
| 	switch p.Order() { |  | ||||||
| 	case OrderAscending: |  | ||||||
| 		lo = &p.Max |  | ||||||
| 		hi = &p.Min |  | ||||||
| 	case OrderDescending: |  | ||||||
| 		lo = &p.Min |  | ||||||
| 		hi = &p.Max |  | ||||||
| 	} |  | ||||||
| 	return |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // Page will page the given slice of input according | // Page will page the given slice of input according | ||||||
| // to the receiving Page's minimum, maximum and limit. | // to the receiving Page's minimum, maximum and limit. | ||||||
| // NOTE: input slice MUST be sorted according to the order is | // NOTE: input slice MUST be sorted according to the order is | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue