Merge "Remove Random::Chance()" into devel/master
[platform/core/uifw/dali-core.git] / dali / public-api / math / random.h
index ee9a012..9b9e97e 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_RANDOM_H__
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -66,17 +66,6 @@ inline Vector4 Axis()
   return axis;
 }
 
-/**
- * @brief Returns true if the value given is greater than a random value between 0 and 1.
- *
- * @param chance  A value between 0 and 1. [Default: 0.5]
- * @return        true if chance greater than the random value, otherwise false.
- */
-inline bool Chance(float chance = 0.5f)
-{
-  return chance > Range(0.0f, 1.0f);
-}
-
 } // namespace Random
 
 } // namespace Dali