model: fix `try_get_primitive_method`
authorJean Privat <jean@pryen.org>
Wed, 25 Nov 2015 16:50:04 +0000 (11:50 -0500)
committerJean Privat <jean@pryen.org>
Wed, 25 Nov 2015 16:50:04 +0000 (11:50 -0500)
commit010e2521c2cfa5b08033f9b2ae7ea1c6c88443cf
tree54dce4b983011cbc8f6f6c22250c9a2025afca77
parent5678b141e7b33c26dd95c243fa7f1feaa87e99fc
model: fix `try_get_primitive_method`

The implementation was an old code that did not use modern facilities,
moreover it was broken anyway.

Reported-by: Lucas Bajolet <r4pass@hotmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>
src/model/model.nit