mirror of
https://github.com/nxshock/colorcrop.git
synced 2025-07-02 00:23:44 +05:00
Remove unnecessary lines from examples
This commit is contained in:
parent
c7fe0bb79e
commit
4d01a57714
1 changed files with 0 additions and 5 deletions
|
@ -3,7 +3,6 @@ package colorcrop_test
|
|||
import (
|
||||
"image/color"
|
||||
"image/png"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/nxshock/colorcrop"
|
||||
|
@ -11,8 +10,6 @@ import (
|
|||
|
||||
// Simple remove of white borders.
|
||||
func ExampleCrop() {
|
||||
log.SetFlags(0)
|
||||
|
||||
// Read source image
|
||||
sourceFile, _ := os.Open("img.png")
|
||||
defer sourceFile.Close()
|
||||
|
@ -34,8 +31,6 @@ func ExampleCrop() {
|
|||
|
||||
// Remove white borders with custom color comparator.
|
||||
func ExampleCropWithComparator() {
|
||||
log.SetFlags(0)
|
||||
|
||||
// Read source image
|
||||
sourceFile, _ := os.Open("img.png")
|
||||
defer sourceFile.Close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue