Skip to content

Commit

Permalink
remove unneed functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
onecoolx committed Sep 14, 2023
1 parent 91d0884 commit dfe2f7c
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 28 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tags
proj
vcproj
2 changes: 1 addition & 1 deletion build_linux.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

./tools/gyp/gyp --depth=./ picasso.gyp --generator-output=proj
echo "Please change dir to \"proj\" and type \"make \" or \"make BUILDTYPE=Release \""
echo "Please change dir to \"proj\" and type \"make\" or \"make BUILDTYPE=Release\""
echo "...\n"
12 changes: 0 additions & 12 deletions src/gfx/gfx_trans_affine.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,6 @@ class gfx_trans_affine : public abstract_trans_affine
*y = b * m_sx - a * m_shy;
}

// Store matrix to an array [6] of scalar
virtual void store_to(scalar* m) const
{
*m++ = m_sx; *m++ = m_shy; *m++ = m_shx; *m++ = m_sy; *m++ = m_tx; *m++ = m_ty;
}

// Load matrix from an array [6] of float
virtual void load_from(const scalar* m)
{
m_sx = *m++; m_shy = *m++; m_shx = *m++; m_sy = *m++; m_tx = *m++; m_ty = *m++;
}

public:
// Multiply the matrix by another one
const gfx_trans_affine& operator *= (const gfx_trans_affine& o)
Expand Down
3 changes: 0 additions & 3 deletions src/include/interfaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ class abstract_trans_affine
virtual void transform(scalar* x, scalar* y) const = 0;
virtual void transform_2x2(scalar* x, scalar* y) const = 0;
virtual void inverse_transform(scalar* x, scalar* y) const = 0;

virtual void store_to(scalar* m) const = 0;
virtual void load_from(const scalar* m) = 0;
protected:
abstract_trans_affine() {}
};
Expand Down
10 changes: 0 additions & 10 deletions src/picasso_matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,4 @@ scalar trans_affine::rotation(void) const
return m_impl->rotation();
}

void trans_affine::store_to(scalar* m) const
{
m_impl->store_to(m);
}

void trans_affine::load_from(const scalar* m)
{
m_impl->load_from(m);
}

}
2 changes: 0 additions & 2 deletions src/picasso_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ class trans_affine
void transform_2x2(scalar* x, scalar* y) const;
void inverse_transform(scalar* x, scalar* y) const;

void store_to(scalar* m) const;
void load_from(const scalar* m);
public:
const trans_affine& operator *= (const trans_affine& o) { return multiply(o); }
abstract_trans_affine* impl(void) const { return m_impl; }
Expand Down

0 comments on commit dfe2f7c

Please sign in to comment.