Remove obsolete and non functional SizeChanged signal from actor
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / scrollable / scroll-view / scroll-view-constraints.cpp
diff --git a/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-constraints.cpp b/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-constraints.cpp
deleted file mode 100644 (file)
index ac29e53..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-// INTERNAL INCLUDES
-
-#include <dali/public-api/common/constants.h>
-#include <dali/public-api/math/math-utils.h>
-#include <dali/public-api/object/property-input.h>
-#include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-constraints.h>
-
-using namespace Dali;
-
-namespace Dali
-{
-
-namespace Toolkit
-{
-
-Vector3 MoveActorConstraint(const Vector3&    current,
-                            const PropertyInput& scrollPositionProperty)
-{
-  return current + scrollPositionProperty.GetVector3();
-}
-
-Vector3 MoveScaledActorConstraint(const Vector3&    current,
-                                  const PropertyInput& scrollPositionProperty,
-                                  const PropertyInput& scrollScaleProperty)
-{
-  return scrollScaleProperty.GetVector3() * (current + scrollPositionProperty.GetVector3());
-}
-
-Vector3 ScaleActorConstraint(const Vector3&    current,
-                             const PropertyInput& scrollScaleProperty)
-{
- return current * scrollScaleProperty.GetVector3();
-}
-
-Vector3 WrapActorConstraint(const Vector3&    current,
-                            const PropertyInput& actorScaleProperty,
-                            const PropertyInput& actorAnchorPointProperty,
-                            const PropertyInput& actorSizeProperty,
-                            const PropertyInput& scrollPositionMin,
-                            const PropertyInput& scrollPositionMax,
-                            const PropertyInput& scrollWrap)
-{
-  Vector3 position = current;
-  bool wrap = scrollWrap.GetBoolean();
-
-  if(wrap)
-  {
-    const Vector3& min = scrollPositionMin.GetVector3();
-    const Vector3& max = scrollPositionMax.GetVector3();
-
-    const Vector3& anchor = actorAnchorPointProperty.GetVector3();
-    const Vector3 scale = actorScaleProperty.GetVector3();
-    const Vector3 size = actorSizeProperty.GetVector3();
-
-    if(fabsf(min.x - max.x) > Math::MACHINE_EPSILON_1)
-    {
-      // WRAP X (based on the position of the right side)
-      float offsetX = (1.0f - anchor.x) * size.x * scale.x;
-      position.x = WrapInDomain(position.x + offsetX, min.x, max.x) - offsetX;
-    }
-
-    if(fabsf(min.y - max.y) > Math::MACHINE_EPSILON_1)
-    {
-      // WRAP Y (based on the position of the bottom side)
-      float offsetY = (1.0f - anchor.y) * size.y * scale.y;
-      position.y = WrapInDomain(position.y + offsetY, min.y, max.y) - offsetY;
-    }
-  }
-
-  return position;
-}
-
-} // namespace Toolkit
-
-} // namespace Dali
-